package com.amos.knife4j.service;


import com.github.pagehelper.PageInfo;
import com.amos.knife4j.entity.Dic;
import com.amos.knife4j.dto.form.DicForm;
import com.amos.knife4j.dto.DicBean;

/** 
 * <br/>
 * Created by amos on 2021/09/17
 */
public interface DicService extends BaseService<Dic, String> {

  /**
     * Dic添加
     *
     * @author amos
     * @date 2021-09-17 10:00:33
     * @param userId
     * @param form
     */
    void insert(String userId, DicForm form);

    /**
     * Dic修改
     *
     * @author amos
     * @date 2021-09-17 10:00:33
     * @param id
     * @param userId
     * @param form
     */
    void update(String id, String userId, DicForm form);

    /**
     * Dic状态停用启用
     *
     * @author amos
     * @date 2021-09-17 10:00:33
     * @param id
     * @param userId
     * @param state
     */
    void updateState(String id, String userId, String state);

    /**
     * Dic删除
     *
     * @author amos
     * @date 2021-09-17 10:00:33
     * @param id
     */
    void delete(String id);

    /**
     * Dic列表
     *
     * @author amos
     * @date 2021-09-17 10:00:33
     * @param pageNum
     * @param pageSize
     */
    PageInfo<DicBean> selectDicPage(int pageNum, int pageSize);

    /**
     * Dic详情
     *
     * @author amos
     * @date 2021-09-17 10:00:33
     * @param id
     */
    DicBean selectDicDetail(String id);

}
